package com.unipay.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.unipay.model.user.UserInfo;
import com.unipay.vo.user.LoginVo;
import com.unipay.vo.user.UserAuthVo;
import com.unipay.vo.user.UserInfoQueryVo;

import java.util.Map;

/**
 * @Project: yitong_parent
 * @Author: C.yu
 * @Time: 2023-05-01 09:12:11
 * @Desc: TODO
 */
//@Service
public interface UserInfoService extends IService<UserInfo> {

    // 用户手机号登录接口
    Map<String, Object> userLogin(LoginVo loginVo);
    //用户认证
    void userAuth(Long userId, UserAuthVo userAuthVo);

    UserInfo selectWxInfoOpenId(String openid);

    IPage<UserInfo> selectPage(Page<UserInfo> userInfoPage, UserInfoQueryVo userInfoQueryVo);

    Integer lock(Long userId, Integer status);

    Map<String, Object> show(Long userId);

    Boolean approval(Long userId, Integer authStatus);
}
